package com.example.demo.mapper;

import com.example.demo.entity.Organ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrganMapper {
    List<Organ> findAllOrgan(@Param("mname") String mname,@Param("sort") String sort,@Param("order") String order);

    public void removeBatch(@Param("mids") String[] mids);

    public void delByMid(@Param("mid") String mid);


    public void addOrgan(@Param("o") Organ o);

    public Organ getByMid(Integer mid);

    public void modifyOrgan(@Param("o") Organ o);
}
